package com.qf.daomain;

import java.util.Set;

/**
 * @author 10537
 * @version V1.0
 * @Date 2021/9/26 16:51
 */

public class Role {
    private Integer id;
    private String name;
    private Set<Perm> permSet;

    public Role() {
    }

    public Role(Integer id, String name, Set<Perm> permSet) {
        this.id = id;
        this.name = name;
        this.permSet = permSet;
    }

    public Role(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Perm> getPermSet() {
        return permSet;
    }

    public void setPermSet(Set<Perm> permSet) {
        this.permSet = permSet;
    }
}
